import React, { Component } from 'react'
import ctx from './store/index'

export default class Footer extends Component {
  
  static contextType = ctx
  render() {

    return (
      <div>
        <button onClick={()=>{
          this.context.changeProson(true,10)
        }}>支持</button>
        <button onClick={()=>{
          this.context.changeProson(false,1)
        }}>反对</button>
      </div>
    )
  }
}
